package com.css.zfzx.sjcj.modules.hddcRock25LinePre.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.common.spacedata.vo.SpaceDataParamsVo;
import com.css.zfzx.sjcj.modules.hddcRock25LinePre.repository.entity.HddcRock25linepreEntity;
import com.css.zfzx.sjcj.modules.hddcRock25LinePre.viewobjects.HddcRock25linepreQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zyb
 * @date 2020-11-27
 */

public interface HddcRock25linepreService {

    public JSONObject queryHddcRock25linepres(HddcRock25linepreQueryParams queryParams, int curPage, int pageSize,String sort,String order);

    public HddcRock25linepreEntity getHddcRock25linepre(String id);

    public HddcRock25linepreEntity saveHddcRock25linepre(HddcRock25linepreEntity hddcRock25linepre);
    Iterable<HddcRock25linepreEntity> saveHddcRock25linepreList(List<HddcRock25linepreEntity> list);
    public HddcRock25linepreEntity updateHddcRock25linepre(HddcRock25linepreEntity hddcRock25linepre);

    public void deleteHddcRock25linepres(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    void exportFile(HddcRock25linepreQueryParams queryParams, HttpServletResponse response);

    String exportExcel(MultipartFile file, HttpServletResponse response);
    /**
     * 逻辑删除-根据项目id删除数据
     * @param ids
     */
    void deleteByProjectId(List<String> ids);

    /**
     * 逻辑删除-根据任务id删除数据
     * @param ids
     */
    void deleteByTaskId(List<String> ids);

    String judegeParams(String[] datas);

    void saveRock25linepreServiceFromShpFiles(List<List<Object>> list, String provinceName, String cityName, String areaName,String savefilename);

    List<HddcRock25linepreEntity> findAll();

    void deleteFileData(SpaceDataParamsVo paramsVo);
}
